package com.ndm.activity;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.util.DisplayMetrics;

import com.ndm.common.MoveActivity;

public class IntroApps extends Activity {

	private Handler mHandler = new Handler();
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        DisplayMetrics matrix = new DisplayMetrics();
        getWindowManager().getDefaultDisplay().getMetrics(matrix);
        
        float density = matrix.density;
        float xdpi = matrix.xdpi;
        float ydpi = matrix.ydpi;
        
        //초기 폰의 해상도 체크
        
        this.appStart(2000);
    }

    public void appStart(int delay){
        mHandler.postDelayed(new InitThread(), delay);
        
    }
    
    class InitThread implements Runnable{
    	
		public void run() {
			
			MoveActivity go = new MoveActivity(IntroApps.this, MainActivity.class);
			go.startActivity(IntroApps.this);
		}
	}
}
